﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:Digit14="clr-namespace:SegmentDisplay.Common.Digit14">

    <!--default 14 segments-->
    <ControlTemplate x:Key="TemplateSegmentDigit14" TargetType="{x:Type Digit14:SegmentDigit14}">
        <Viewbox>
            <Grid >
                <Polygon Name="SegmentElementAB" Points="9,4 13,0 39,0 43,4 39,8 13,8" Fill="{TemplateBinding SegmentAB}" />
                <Polygon Name="SegmentElementC" Points="44,5 48,9 46,35 42,39 38,35 40,9" Fill="{TemplateBinding SegmentC}" />
                <Polygon Name="SegmentElementD" Points="42,41 46,45 44,71 40,75 36,71 38,45" Fill="{TemplateBinding SegmentD}" />
                <Polygon Name="SegmentElementJ" Points="7,40 11,36 19,36 23,40 19,44 11,44" Fill="{TemplateBinding SegmentJ}"  />
                <Polygon Name="SegmentElementM" Points="25,40 29,36 37,36 41,40 37,44 29,44" Fill="{TemplateBinding SegmentM}" />
                <Polygon Name="SegmentElementI" Points="30,9 28,35 24,39 20,35 22,9" Fill="{TemplateBinding SegmentI}" />
                <Polygon Name="SegmentElementK" Points="24,41 28,45 26,71 18,71 20,45" Fill="{TemplateBinding SegmentK}" />
                <Polygon Name="SegmentElementEF" Points="5,76 9,72 35,72 39,76 35,80 9,80" Fill="{TemplateBinding SegmentEF}" />
                <Polygon Name="SegmentElementG" Points="6,41 10,45 8,71 4,75 0,71 2,45" Fill="{TemplateBinding SegmentG}" />
                <Polygon Name="SegmentElementH" Points="8,5 12,9 10,35 6,39 2,35 4,9" Fill="{TemplateBinding SegmentH}" />
                <Polygon Name="SegmentElementN" Points="13,9 15,9 20,23 19,35 17,35 12,20" Fill="{TemplateBinding SegmentN}" />
                <Polygon Name="SegmentElementO" Points="39,9 38,23 31,35 29,35 30,20 37,9" Fill="{TemplateBinding SegmentO}" />
                <Polygon Name="SegmentElementP" Points="29,45 31,45 36,60 35,71 33,71 28,57" Fill="{TemplateBinding SegmentP}" />
                <Polygon Name="SegmentElementR" Points="19,45 18,60 11,71 9,71 10,57 17,45" Fill="{TemplateBinding SegmentR}" />
            </Grid>
        </Viewbox>
    </ControlTemplate>

    <!--Segment14-->
    <Style x:Key="SegmentDigit14Style" TargetType="{x:Type Digit14:SegmentDigit14}">
        <Setter Property="Template" Value="{StaticResource TemplateSegmentDigit14}" />
    </Style>

</ResourceDictionary>